package Day2;
/**
 * 将字符串"123abc456def789ghi"中的英文部分替换为"#char#"
 * @author Bonnie
 *
 */
public class Test04 {
    public static void main(String[] args) {
        String str="123abc456def789ghi";
        //[a-zA-Z]
        System.out.println(str.replace("abc","#char#").replace("def","#char#").replace("ghi","#char#"));
    }
}
